package main

import (
	"fmt"
	"runtime"
)

func main() {
	fmt.Println("当前逻辑CPU核心数量：", runtime.NumCPU())
	fmt.Println("当前操作系统：", runtime.GOOS)
	runtime.GOMAXPROCS(10)
	fmt.Println(runtime.GOMAXPROCS(1))
}
